<%@ include file="/WEB-INF/view/include.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<%
	String type = (String) request.getParameter("type");
	String username = (String) session.getAttribute("userName");
	System.out.println("********** Type is " + type + " **********");
	if (null == type) {
		type = "feesMapping";
	}
%>
<sec:authorize access="isAuthenticated()">
<sec:authorize access="hasAnyRole('ROLE_EHS_ADMIN','ROLE_FNP_ADMIN')"> 

<div class="t_menu-heading"><spring:message code="label.menu.admin.menu.label" /></div>
<ul class="topnav">
	<sec:authorize access="hasRole('ROLE_EHS_ADMIN')">
		<li <%=type.equals("manageDocument")? " class='current'":"" %> >
			<img class="imgitem" src="resources/images/my-requests.png" />
			<a href="admin/manageDocument.htm?type=manageDocument">
				<spring:message code="label.menu.admin.manageDocument" />
			</a>
		</li>
	</sec:authorize>
	
	<sec:authorize access="hasRole('ROLE_FNP_ADMIN')">
		<li <%=type.equals("feesMapping")? " class='current'" : ""%> >
			<img class="imgitem" src="resources/images/fees-mapping.png" />
			<a href="admin/fnpMapping.htm?type=feesMapping">
				<spring:message code="label.menu.admin.feesMapping" />
			</a>
		</li>
	</sec:authorize>
</ul>
<div class="bg_MenuBottom"></div>
</sec:authorize>
</sec:authorize>
